package chixing.day12.class1;

public class AccountTest {
    public static void main(String[] args) throws BalanceNotEnoughException {
    CreditAccount acc1= new CreditAccount();
    acc1.setAccBalance(1000);
    acc1.withdraw(500);

    CreditAccount acc2= new CreditAccount();
    acc1.transfer(500,acc2);
    }
}
